package com.gin.custom;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.gin.custom.cust1.Cust1Activity;
import com.gin.custom.cust2.Cust2Activity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        final View btn1 = findViewById(R.id.btn);
        final View btn2 = findViewById(R.id.btn2);
        
        btn1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v1) {
            startActivity(Cust1Activity.createIntent(MainActivity.this));
            }
        });
        btn2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v1) { startActivity(Cust2Activity.createIntent(MainActivity.this));
            }
        });
    }
}
